import request from '@/utils/request'

// api地址
const api = {
  login: '/ums/yoshopUser/create',
  loginMpWx: '/admin/wx/login',
  loginCode:'/send/'
}

// 用户登录(手机号+验证码)
export function login(data) {
  return request.post(api.login, data)
}
// 验证码
export function loginCode(phone) {
  return request.get(api.loginCode+phone)
}

// 微信小程序快捷登录(获取微信用户基本信息)
export function loginMpWx(data, option) {
  return request.post(api.loginMpWx, data, option)
}

